package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Phone    string `json:"phone" form:"phone" binding:"required" gorm:"comment:'手机号'"`
	Password string `json:"password" form:"password" binding:"required" gorm:"comment:'密码'"`
	Nickname string `json:"nickname" form:"nickname" gorm:"comment:'昵称'"`
	Avatar   string `json:"avatar" form:"avatar" gorm:"size:512;comment:'头像'"`
	Gender   *int   `json:"gender" form:"gender" gorm:"comment:'性别1:男；2:女'"`
	Age      int    `json:"age" form:"age" gorm:"comment:'年龄'"`
	Name     string `json:"name" form:"name" gorm:"comment:'姓名'"`
	Email    string `json:"email" form:"email" gorm:"comment:'邮箱'"`
}
